package com.company.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.company.project.entity.BaseEntity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ${comments}
 *
 * @author wenbin
 * @email *****@mail.com
 * @date 2022-06-06 10:11:28
 */
@Data
@TableName("a_active")
public class AActiveEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * $column.comments
	 */
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;

	@TableField(fill = FieldFill.INSERT)
	private Integer deleted;
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	/**
	 * 活动名称
	 */
	@NotBlank(message="请输入活动名称")
	@TableField("name")
	private String name;

	/**
	 * 活动开始时间
	 */
	@NotBlank(message="请选择活动开始时间")
	@TableField("start_time")
	private String startTime;

	/**
	 * 活动结束时间
	 */
	@NotBlank(message="请选择活动结束时间")
	@TableField("end_time")
	private String endTime;

	/**
	 * 活动内容描述
	 */
	@TableField("desr")
	private String desr;

	/**
	 * 活动总资金
	 */
	@NotNull(message = "请输入活动所需资金")
	@TableField("amount")
	private BigDecimal amount;

	/**
	 * 活动所属班级id
	 */
	@NotNull(message = "请输入班级ID")
	@TableField("class_id")
	private Integer classId;

	/**
	 * 活动类别id
	 */
	@NotNull(message = "请输入活动类别ID")
	@TableField("type_id")
	private Integer typeId;


	@TableField("class_name")
	private String className;

	@TableField("type_name")
	private String typeName;


}
